package com.moss.cloud.base.api.model.from;

import com.moss.cloud.common.core.annotation.document.ApiComment;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiComment("流程审批表单参数")
public class ApprovalFrom implements Serializable {
    /**
     * 任务ID
     */
    @ApiComment(value = "任务ID",required = true)
    @NotNull(message = "任务ID不能为空")
    private Long id;
    /**
     * 批复状态1:未开始，2:进行中，3:通过，4:拒绝 审批人只能操作通过和拒绝
     */
    @ApiComment(value = "批复状态1:未开始，2:进行中，3:通过，4:拒绝 审批人只能操作通过和拒绝",required = true)
    @NotNull(message = "批复状态不能为空")
    @Min(value = 3, message = "批复状态只能是通过或者拒绝")
    @Max(value = 4, message = "批复状态只能是通过或者拒绝")
    private Integer status;
    /*** 批复意见*/
    @ApiComment(value = "批复意见")
    private String applyOpinion;
}
